/* ======使用注明=======
 //#import "SEGTabBarView.h"
 //@property (nonatomic, strong)SEGTabBarView *varTabBarView; <#注释#>
 // 控件数据模型创建
 SEGTabBarViewModel *data = [[SEGTabBarViewModel alloc]init];
 // 控件内容布局计算
 SEGTabBarViewLayout *layout = [[SEGTabBarViewLayout alloc]initWithData:data type:SEGEnumTabBarViewType_NO];
 // 内容布局填充到视图
 SEGTabBarView *varTabBarView = [[SEGTabBarView alloc]initWithFrame:CGRectZero];
 //varTabBarView.delegate = self;
 varTabBarView.left = 0;
 varTabBarView.top = 0;
 varTabBarView.width = kScreenWidth;
 varTabBarView.height = varTabBarView.layout.totalHeight;
 [varTabBarView setWithLayout:layout];
 
 */
#import <UIKit/UIKit.h>
#import "SEGTabBarItemView.h"
#import "SEGTabBarViewLayout.h"
@class SEGTabBarView;


@protocol ProtocolTabBarViewDelegate <NSObject>

- (void)segTabBarView:(SEGTabBarView *)view didSelectItemAtIndex:(NSInteger)index data:(SEGMenuListModel*)data;

@end

@interface SEGTabBarView : UIView

@property (nonatomic, strong, readonly) SEGTabBarViewLayout *layout;
- (void)setWithLayout:(SEGTabBarViewLayout *)layout;
@property (nonatomic, assign) id<ProtocolTabBarViewDelegate> delegate;// 代理
@property (nonatomic, strong) UIScrollView *backgroundScrollView;
@property (nonatomic, assign) NSInteger selectIndex;

-(void)segLayoutSubviews;

@end

